﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace MiniOrderSystem.Data.Dapper.Model
{
    //MINI_BOOK 书籍表
    [Table("MINI_BOOK")]
    public class Book : BaseEntity
    {
        [Required]
        public string BookNo { get; set; } //书籍编号

        [Required]
        public string Author { get; set; } //作者

        public string Description { get; set; } //描述
        public string Picture { get; set; } //封面图

        [Required]
        public string BookType { get; set; } //书籍类型

        [Required,MinLength(32), MaxLength(32)]
        public string CommodityId { get; set; } //商品id Commodity
    }
}